package by.bsu.scs.model;

// Generated 05.03.2011 11:02:05 by Hibernate Tools 3.4.0.CR1

import java.util.HashSet;
import java.util.Set;

/**
 * 			This class contains User details.
 * 		
 */
public class User implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

	private int userId;
	private int bsuId;
	private String userName;
	private String userSurname;
	private String email;
	private UserRole userRole;
	private Localization localization;
	private String password;
	private Set <StudentGroup> studentGroup = new HashSet <StudentGroup> (0);

	public User() {
	}
	
	public User(String email) {
		super();
		this.email = email;
	}

	public User(String email, String password) {
		super();
		this.email = email;
		this.password = password;
	}

	public User(int bsuId, String userName, String userSurname, String email,
			UserRole userRole, String password) {
		this.bsuId = bsuId;
		this.userName = userName;
		this.userSurname = userSurname;
		this.email = email;
		this.userRole = userRole;
		this.password = password;
	}

	public User(int bsuId, String userName, String userSurname, String email,
			UserRole userRole, Localization localization, String password,
			Set <StudentGroup> studentGroup) {
		this.bsuId = bsuId;
		this.userName = userName;
		this.userSurname = userSurname;
		this.email = email;
		this.userRole = userRole;
		this.localization = localization;
		this.password = password;
		this.studentGroup = studentGroup;
	}
	
	public User(User user){
		this.userId = user.userId;
		this.bsuId = user.bsuId;
		this.userName = user.userName;
		this.userSurname = user.userSurname;
		this.email = user.email;
		this.userRole = user.userRole;
		this.localization = user.localization;
		this.password = user.password;
	}

	public int getUserId() {
		return this.userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getBsuId() {
		return this.bsuId;
	}

	public void setBsuId(int bsuId) {
		this.bsuId = bsuId;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserSurname() {
		return this.userSurname;
	}

	public void setUserSurname(String userSurname) {
		this.userSurname = userSurname;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public UserRole getUserRole() {
		return this.userRole;
	}

	public void setUserRole(UserRole userRole) {
		this.userRole = userRole;
	}

	public Localization getLocalization() {
		return this.localization;
	}

	public void setLocalization(Localization localization) {
		this.localization = localization;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Set <StudentGroup> getStudentGroup() {
		return this.studentGroup;
	}

	public void setStudentGroup(Set <StudentGroup> studentGroup) {
		this.studentGroup = studentGroup;
	}

		
}
